package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 展商产品对象 xhlj_enterprise_product
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_enterprise_product")
@Entity
@Table(name = "xhlj_enterprise_product")
@SailTable(comment = "展商产品表", indexs = {})
public class XhljEnterpriseProduct implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_enterpriseProduct_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_enterpriseProduct_list";
    /**
     * 产品ID
     */
    @TableId(value = "product_id", type = IdType.AUTO)
    @Id
    private Integer productId;
    /**
     * 产品名称
     */
    @Column(name = "product_name")
    @SailColumn(comment = "产品名称",type = "varchar(100)", defaultValue = "NULL")
    private String productName;
    /**
     * 展商ID
     */
    @SailColumn(comment = "展商ID",type = "int", defaultValue = "NULL")
    @Column(name = "enterprise_id")
    private Integer enterpriseId;
    /**
     * 产品描述
     */
    @Column(name = "product_content")
    @SailColumn(comment = "产品描述",type = "text", defaultValue = "NULL")
    private String productContent;
    /**
     * 图片
     */
    @Column(name = "image")
    @SailColumn(comment = "图片",type = "text", defaultValue = "NULL")
    private String image;
    /**
     * 图片描述
     */
    @Column(name = "image_description")
    @SailColumn(comment = "图片描述",type = "varchar(255)", defaultValue = "NULL")
    private String imageDescription;
    /**
     * 视频
     */
    @Column(name = "video_file")
    @SailColumn(comment = "视频",type = "text", defaultValue = "NULL")
    private String videoFile;
    /**
     * 视频描述
     */
    @Column(name = "video_description")
    @SailColumn(comment = "视频描述",type = "varchar(255)", defaultValue = "NULL")
    private String videoDescription;
    /**
     * 产品类型（0=软件，1=硬件，2=服务）
     */
    @Column(name = "product_type")
    @SailColumn(comment = "产品类型（0=软件，1=硬件，2=服务）",type = "char(3)", defaultValue = "NULL")
    private String productType;
    /**
     * 产品价格
     */
    @Column(name = "price")
    @SailColumn(comment = "产品价格",type = "decimal(10,2)", defaultValue = "NULL")
    private BigDecimal price;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 删除标识符
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标识符",type = "char(1)", defaultValue = "0")
    private String delFlag;
    /**
     * 创建人sys_user（展商）
     */
    @SailColumn(comment = "创建人sys_user（展商）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
}
